package com.itheima.dome;

import java.util.HashSet;
import java.util.Set;

public class Students {
    public static void main(String[] args) {

        Set<Student> studentSet=new HashSet<>();
        studentSet.add(new Student("张三",20,'男'));
        studentSet.add(new Student("李四",21,'女'));
        studentSet.add(new Student("张三",20,'男'));

        for (Student student1 : studentSet) {
            System.out.println(student1.toString());
        }
    }
}
